Objects Reference

flyEngine::get_random_point

Prototype

bsp_node *get_random_point(vector& v,float mindist)

Parameters

Parameter Type Description
v vector& point
mnidist float minimum distance

Return Value

Returns the bsp leaf the random point v is in.

Remarks

This function is used to compute a random position inside the level that is at least mindist away from any wall. The random position will be stored in the v parameter.